#!/usr/bin/env python
#  -*-coding:utf8 -*-
 
import rospy
import numpy as np
from std_msgs.msg import Int64
from hellobot_msgs.msg import msg_call

def JumpCommand(data):
    # 控制舵机运动
    flag = True

    return flag


class Jump():
    def __init__(self):
        rospy.Subscriber('Move', msg_call, self.callbackJump)
        rate = rospy.Rate(10)

    def callbackJump(self, data):
        flag = JumpCommand(data)
        #print('remaining: {:.1f}%'.format(data.remain))
        rospy.loginfo("Jumping")



if __name__ == '__main__':
    rospy.init_node('Servo')
    try:
        Jump()
    except rospy.ROSInterruptException:
        pass
    rospy.spin()
